package com.damage.supplier.service;

import com.damage.common.entity.SupplyGood;
import com.github.pagehelper.PageInfo;
import com.sun.istack.internal.Nullable;

public interface ISupplyGoodService {

    Integer newSupplyGood(SupplyGood supplyGood);

    SupplyGood findById(Integer id);

    PageInfo<SupplyGood> findBySupplierId(@Nullable Integer pageNum, Integer supplierId);

    PageInfo<SupplyGood> findSupplyGood(@Nullable Integer pageNum,
                                        Integer type,
                                        String name,
                                        Integer supplierId);

    Integer update(SupplyGood supplyGood,Boolean isInfluential);

    Integer deleteById(Integer id);
}
